package com.briup.ch06.test;
import java.lang.Math;
public class Circle {
    private double radius;
    public double surfaceArea()
    {
        return Math.PI*radius*radius;
    }
    public double Circumference()
    {
        return 2*Math.PI*radius;
    }
    @Override
    public String toString()
    {
        return "圆的表面积："+this.surfaceArea()+" "+"圆的周长："+this.Circumference();
    }
    public Circle(double radius)
    {
        this.radius=radius;
    }
    public double getRadius()
    {
        return this.radius;
    }
}
